import proFetch from '../../../../hrpub/common/utils/project-fetch'

export default {
    name: 'main',

    data: {
        pageInfo: {
            pageIndex: 1,
            pageSize: 10,
            total: 0,
            totalPage: 1
        }, //分页信息
        json: {}, //多语
        orgvalue: {},//默认hr组织

    },

    sync: {
        update(state,payload){
            return {
                ...state,
                ...payload
            }
        }

    },
    async: {
        //查询列表数据
        queryTableData (dispatch,getstate,data){
            return proFetch({
                url: '',
                body: data
            })
        }

    }
} 